package com.hgw.Demo07_ObserverPattern.Exercises22_9_4;

import java.util.Observable;
import java.util.Observer;

/**
 * Data time:2021/12/19 17:36
 * StudentID:2019112118
 * Author:hgw
 * Description: 主人类，充当具体观察者
 */
public class Master implements Observer {
    @Override
    public void update(Observable o, Object arg) {
        System.out.println("主人被惊醒");
    }
}
